package com.zmj.sy.mom.srv.aps.bean.vo.dictdata;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class PageReqDto {
    @ApiModelProperty("当前页码")
    private Integer page = 1;

    @ApiModelProperty("每页记录数")
    private Integer size = 10;

    @SuppressWarnings("unused")
    public <T> Page<T> toPage(Class<T> clazz) {
        return new Page<>(page, size);
    }

}
